package cn.janescott.inner.space.lib.boot.properties;

import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * springboot admin filter 配置
 *
 * @author scott
 * @date 2018/7/20
 */
@ConfigurationProperties(prefix = "me.springboot.admin")
public class SpringBootAdminProperties {

    private String urlPattern = "/actuator/*,/dashboard/*";

    private String ipAddress = "";

    /**
     * admin server 项目中 免密码访问
     * 用于admin client将自己的信息注册到admin server api上
     */
    private String whiteList = "/actuator/**,/dashboard/**";

    private Boolean enabled = Boolean.FALSE;

    public String getUrlPattern() {
        return urlPattern;
    }

    public void setUrlPattern(String urlPattern) {
        this.urlPattern = urlPattern;
    }

    public String getIpAddress() {
        return ipAddress;
    }

    public void setIpAddress(String ipAddress) {
        this.ipAddress = ipAddress;
    }

    public String getWhiteList() {
        return whiteList;
    }

    public void setWhiteList(String whiteList) {
        this.whiteList = whiteList;
    }

    public Boolean getEnabled() {
        return enabled;
    }

    public void setEnabled(Boolean enabled) {
        this.enabled = enabled;
    }
}
